<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>工作流</title>
<%@include file="common/taglibs.jsp"%>
<%@include file="common/global.jsp"%>
<script src="${ctxr}/jqueryeasyui/outlook.js" type="text/javascript"></script>
<script type="text/javascript">

function logout() {
	$.messager.confirm('警告', '你真的要退出？', function(r) {
		if (r) {
			$.ajax({
				type : "get",
				url : "${ctx}/admin/logout",
				success : function(data) {
					$.messager.alert('提示', '退出成功', "info", function() {
						//window.open('${ctx}/');
						window.location.href = '${ctx}/';
					});
				},
				error : function() {
					$.messager.alert('提示', '退出失败', "error");
				}
			});
		}
	});
	return false;
}
function xgpasswrod() {
	$('#win').window('open');
	return false;
}
</script>

</head>
<body class="easyui-layout">
	<div region="north" border="false"
		style="overflow: hidden; height: 30px; background: url(${ctxr}/images/layout-browser-hd-bg.gif) #7f99be repeat-x center 50%; line-height: 20px; color: #fff; font-family: Verdana, 微软雅黑, 黑体">
		<span style="float: right; padding-right: 20px;" id="bgclock"></span>
		<span style="float: right; padding-right: 20px;" class="head">欢迎
			疯狂秀才 &nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" id="loginOut" onclick="return logout();">安全退出</a>
		</span> <span style="padding-left: 10px; font-size: 16px; float: left;"><img
			src="${ctxr}/images/blocks.gif" width="20" height="20" align="absmiddle" />
			后台管理</span>
	</div>
	<div region="south" 
		style="height: 30px; background: #D2E0F2;">
		<div class="footer"></div>
	</div>
	<div region="west" hide="true" split="true" title="导航菜单" style="width: 200px;" id="west">
		<div id='wnav' class="easyui-accordion" fit="true" border="false" animate="true">
			<!--  导航内容 -->
			<c:forEach items="${menu}" var="m">
				<div title="${m.name}" data-options="iconCls:'icon0504'" >
					<div class="easyui-panel" fit="true" border="false">
						<ul >
							<c:forEach var="rp" items="${m.rolePrivs}">
								<li >
									<div>
									  	<a  href="javascript:void(0);" ref="${rp.title}" rel="${ctx}/${rp.urls}">
							 				<span class="${rp.ioc}" >&nbsp;</span>
							 				<span class="nav">${rp.title}</span>
							 			</a>
									 </div>
								</li>
							</c:forEach>
						</ul>
					</div>
				</div>
			</c:forEach>
			
			<div title="账号管理" data-options="iconCls:'icon0504'">
				<div class="easyui-panel" fit="true" border="false">
					<ul >
						<li >
							<div >
							 	<a  href="javascript:void(0);" ref="修改密码"  onclick="return xgpasswrod();">
							 			<span class="icon-edit" >&nbsp;</span>
							 			<span class="nav">修改密 dsfsdfsdfsdf码</span>
							 	</a>
							</div>
						</li>
					    <li >
							<div>
							   <a href="javascript:void(0);" ref="退出" onclick="return logout();">
							 			<span class="icon-edit" >&nbsp;</span>
							 			<span class="nav">退出</span>
							 		</a>
							 </div>
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div id="mainPanle" region="center" style="background: #eee; overflow-y: hidden">
		<div id="tabs" class="easyui-tabs" fit="true" border="false">
			<div title="欢迎使用" style="padding: 20px; overflow: hidden;" id="home">
				<a class="btn" href="">超链接按钮</a>
				<h1>Welcome to using The jQuery EasyUI!</h1>

			</div>
		</div>
	</div>
	<div id="win" class="easyui-window" title="修改密码" closed="true"
			modal="true" style="width: 600px; height: 300px; padding: 5px;">
			<form class="form-horizontal" style="padding-top: 20px" id="formpasswed">
			  <fieldset>
			    <div class="control-group">
			      <label class="control-label" for="input01">原 来 密 码:</label>
			      <div class="controls">
			        <input type="password" style="widows: 80%" class="input-xlarge" id="oldpasswd" />
			      </div>
			    </div>
			    <div class="control-group">
			      <label class="control-label" for="input01">新 密 码:</label>
			      <div class="controls">
			        <input type="password" class="input-xlarge" id="newpasswd" data-options="required:true" />
			      </div>
			    </div>
			    <div class="control-group">
			      <label class="control-label" for="input01">再 次 输 入:</label>
			      <div class="controls">
			        <input type="password" class="input-xlarge" id="newpasswd2"
						data-options="required:true,validType:'equals[\'newpasswd\']',missingMessage:'请再次输入密码',invalidMessage:'两次输入密码不对'" />
			      </div>
			    </div>
			    <div style="padding: 5px; text-align: center;">
					<a href="#" class="btn btn-primary"  onclick="oksubmint()">提交</a> 
					<a href="#" class="btn btn-primary"  id="cancel"
						onClick="javascript: $('#formpasswed').form('clear');   ">重置</a>
				</div>
			  </fieldset>
			</form>
			
		</div>
	<div id="mm" class="easyui-menu" style="width: 150px;">
		<div id="mm-tabupdate">刷新</div>
		<div class="menu-sep"></div>
		<div id="mm-tabclose">关闭</div>
		<div id="mm-tabcloseall">全部关闭</div>
		<div id="mm-tabcloseother">除此之外全部关闭</div>
		<div class="menu-sep"></div>
		<div id="mm-tabcloseright">当前页右侧全部关闭</div>
		<div id="mm-tabcloseleft">当前页左侧全部关闭</div>
		<div class="menu-sep"></div>
		<div id="mm-exit">退出</div>
	</div>
</body>
</html>
